import {
	apiapi
} from "./request.js"

// 请求子表数据列表
export const getListSub = (data) => apiapi(
	"apim.php?_=DataSubAccess::list",
	"POST",
	data
)

// 子表删除数据
export const doDelSub = (data) => apiapi(
	"apim.php?_=DataSubAccess::del",
	"POST",
	data
)

// 子表添加数据
export const doAddSub = (data) => apiapi(
	"apim.php?_=DataSubAccess::add",
	"POST",
	data
)

// 子表编辑数据
export const doEditSub = (data) => apiapi(
	"apim.php?_=DataSubAccess::edit",
	"POST",
	data
)
